package com.newer.pojo.sys;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class User {
    private Integer id;

    private String userName;

    private String realName;

    private String password;

    private Double salary;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;

    private String gender;

    private Integer organizationId;

    private String telephone;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createDate;

    private String remark;

    private Integer deleteStatus;
    
    //组织名
    private String  organizationName;
    
    //组织
    private Organization organization;
    
    //角色id
    private String roleIds;
    

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
		if (organization!=null) {
			this.setOrganizationName(organization.getOrganizationName());
		}
		
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getDeleteStatus() {
        return deleteStatus;
    }

    public void setDeleteStatus(Integer deleteStatus) {
        this.deleteStatus = deleteStatus;
    }

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", realName=" + realName + ", password=" + password
				+ ", salary=" + salary + ", birthday=" + birthday + ", gender=" + gender + ", organizationId="
				+ organizationId + ", telephone=" + telephone + ", createDate=" + createDate + ", remark=" + remark
				+ ", deleteStatus=" + deleteStatus + ", organizationName=" + organizationName + ", organization="
				+ organization + "]";
	}
    
    
    
}